package com.chenfan.ccp.common.result;

/**
 * @className: ResultCode
 * @description: 返回结果集
 * @author: Leo
 * @date: 2021/01/19 13:11
 **/
public enum ResultCode implements IResultCode {


    SUCCESS(0, "操作成功"),
    FAIL(-1, "业务异常");

    final int code;

    final String message;

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    private ResultCode(final int code, final String message) {
        this.code = code;
        this.message = message;
    }
}